package top.infopub.mgr.cap.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.cap.domain.CreditBalanceManagementDomain;
import top.infopub.mgr.cap.vo.CreditBalanceManagementVo;
import top.infopub.model.cap.CreditBalanceManagement;

import java.util.List;

/*授信余额管理*/
public interface CreditBalanceManagementDao extends GenericDao<CreditBalanceManagement, String> {

    /**
     * 根据条件查询授信余额记录
     * @param creditBalanceManagementVo
     * @return
     * @see
     */
    Page<CreditBalanceManagementDomain> selectByDomainWhere(CreditBalanceManagementVo creditBalanceManagementVo);

    /*新增*/
    int add(CreditBalanceManagement creditBalanceManagement);

    List<String> selectBankName();

    CreditBalanceManagement selectByBankName(@Param("bankName") String bankName);
}
